$(window).load(function() {	setTimeout(function () {$('.load').fadeOut(); start();}, 200);	});

function Flickr(){
var delay1 = Math.floor(Math.random() * 201) + 300,
delay2 = Math.floor(Math.random() * 351) + 50,
delay3 = Math.floor(Math.random() * 1001) + 2000;
$('.bg-change').fadeTo(delay1,0).fadeTo(1,1).delay(50).fadeTo(1,0).delay(delay2).fadeTo(1,1).delay(50).fadeTo(1,0).delay(delay3).fadeTo(1,1).delay(50).fadeTo(1,0);
bgInterval = setInterval(function() {
delay1 = Math.floor(Math.random() * 201) + 300,
delay2 = Math.floor(Math.random() * 151) + 50,
delay3 = Math.floor(Math.random() * 3001) + 2000;
$('.bg-change').fadeTo(delay1,0).fadeTo(1,1).delay(50).fadeTo(1,0).delay(delay2).fadeTo(1,1).delay(50).fadeTo(1,0).delay(delay3).fadeTo(1,1).delay(50).fadeTo(1,0);
}, 7000);
}

$(document).ready(function(){
    Flickr($('.ccontainer'));
$('a.more').click(function(){
    $('.widget').slideDown();
	$('.intro').animate({right:'34%'},"slow");
    $(this).hide(2000);
});
    
$(document).ready(
function(){
    var t;
    const fparam = 1000;
    const uparam = 100;
    window.flickr = function(){
        if(Math.round(Math.random())){
            $(".blink").hide().delay(10).fadeIn(100).fadeOut(100).fadeIn(150).fadeOut(150).fadeIn(200).fadeOut(200).fadeIn(250).fadeOut(250).fadeIn(100);
            t = setTimeout('window.unflickr()',uparam);
        }
        else
            t = setTimeout('window.flickr()',fparam);
    }
    window.unflickr = function(){
        if(Math.round(Math.random())){
            $(".blink").fadeIn().delay(1000);
            t = setTimeout('window.flickr()',fparam);
        }
        else
            t = setTimeout('window.unflickr()',uparam);
    }

    t = setTimeout('window.flickr()',fparam);
});

$('.slider').cycle({ 
    fx:    'fade', 
    speed: 5000,
    startingSlide: 0,
    delay: 5000 
});

});